package java_collection.varargs;

import static java.lang.System.out;

public class VarArgsOverloadingError {

	public static void main(String[] args) {
		
		//load(1,2,3); // error
		
		// The method load(int...) is ambiguous
		// It is not clear to call which version of load
		
	}
	
	// How we can differentiate between these two
	// load methods while calling
	
	public static void load(int... n) {
		out.println("first load");
	}
	public static void load(int m, int... n) {
		out.println("second load");
	}
}
